home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 005 / checkprn.arc / CHECKPRN.DOC < prev   
Encoding:
Text File  |  1986-05-24  |  1.3 KB  |  51 lines

  1.  
  2.                                  CHECKPRN.COM
  3.  
  4. PURPOSE:
  5.  
  6.      Returns batch ERRORLEVEL 1 if printer is off-line
  7.      Returns batch ERRORLEVEL 0 if printer is on-line
  8.  
  9. FORMAT:
  10.  
  11.      CHECKPRN
  12.  
  13. COMMENTS:
  14.  
  15.      The printer checked is LPT1.
  16.  
  17.      If the DOS PRINT command was issued and there is an entry in the print 
  18.      queue, the printer will appear to be on-line, even if it is actually off-
  19.      line. 
  20.  
  21. EXAMPLE:
  22.  
  23.      echo off
  24.      cls
  25.      checkprn
  26.      if errorlevel 1 goto noprn
  27.      echo PRINTER IS ON-LINE
  28.      goto exit
  29.      :noprn
  30.      echo PRINTER IS OFF-LINE
  31.      :exit
  32.       
  33. DOUBLEDOS USERS NOTE: 
  34.      
  35.      This program will work correctly with DoubleDOS if DDCONFIG.SYS contains 
  36.      the line: 
  37.      
  38.           print driver = DIRECT
  39.      
  40.      If DoubleDOS is configured with any other print driver selection, the 
  41.      printer will always appear to be on-line.
  42.  
  43.  
  44.                                                   5/22/86
  45.                                                   Thomas A. Lundin
  46.                                                   Graphics Unlimited Inc.
  47.                                                   3000 2nd Street No.
  48.                                                   Minneapolis, MN 55411
  49.                                                   (612) 588-7571
  50.  
  51.